import request from '@/utils/request'

// 查询机构服务方份额配置列表
export function listShare(query) {
  return request({
    url: '/pm/carDeptSupplierShare/list',
    method: 'get',
    params: query
  })
}

// 查询机构服务方份额配置详细
export function getShare(id) {
  return request({
    url: '/pm/carDeptSupplierShare/' + id,
    method: 'get'
  })
}

// 新增机构服务方份额配置
export function addShare(data) {
  return request({
    url: '/pm/carDeptSupplierShare',
    method: 'post',
    data: data
  })
}

// 修改机构服务方份额配置
export function updateShare(data) {
  return request({
    url: '/pm/carDeptSupplierShare',
    method: 'put',
    data: data
  })
}

// 删除机构服务方份额配置
export function delShare(id) {
  return request({
    url: '/pm/carDeptSupplierShare/' + id,
    method: 'delete'
  })
}

// 交换排序
export function updateOrderNum(param) {
  return request({
    url: '/pm/carDeptSupplierShare/updateOrderNum',
    method: 'post',
    data: param
  })
}
